home *** CD-ROM | disk | FTP | other *** search
/ Gigantic Games 2 / Gigantic Games 2.iso / pc / _w_ / wanderer / src / ami-curses.h < prev    next >
C/C++ Source or Header  |  1994-12-23  |  811b  |  49 lines

  1. /*
  2.  * simple curses emulation for the Amiga
  3.  *
  4.  * Alan Bland
  5.  */
  6. #ifdef AMIGA
  7. #include <intuition/intuition.h>
  8.  
  9. extern struct Window *W;
  10. extern struct Screen *S;
  11. extern struct RastPort *R;
  12.  
  13. #define LINES    23
  14. #define COLUMNS    80
  15.  
  16. #define echo()
  17. #define noecho()
  18. #define cbreak()
  19. #define nocbreak()
  20. #define refresh()
  21. #define printw    addstr
  22.  
  23. #define BLACK        0
  24. #define WHITE        1
  25. #define DK_RED        2
  26. #define RED        3
  27. #define LT_RED        4
  28. #define DK_GREEN    5    
  29. #define GREEN        6
  30. #define LT_GREEN    7    
  31. #define YELLOW        8
  32. #define BLUE        9
  33. #define LT_BLUE        10
  34. #define ORANGE        11
  35. #define BROWN        12
  36. #define LT_GRAY        13
  37. #define MED_GRAY    14
  38. #define DK_GRAY        15
  39.  
  40. /* default colors */
  41. #define TEXT_COLOR    YELLOW
  42. #define INPUT_COLOR    WHITE
  43. #define BACK_COLOR    BLACK
  44.  
  45. #define setcolor(fg,bg)    SetAPen(R, fg); SetBPen(R, bg)
  46.  
  47. #define MOUSE (-3)
  48. #endif
  49.